<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/gyp"></c:set>

<jsp:include page="../template_header.jsp"></jsp:include>

<div class="register-form">
    <form action="${basePath}/goods/add" method="post">
        <%--<input type="hidden" name="id" value="${goods.id}"><br>--%>
        <%--<input type="number" name="type" min="1" max="4" placeholder="工艺品类型，1：雕刻，2：瓷器，3：编制品，4：其他"><br>--%>
        <select name="type" class="i2s-num">
            <option value="1">雕刻</option>
            <option value="2">瓷器</option>
            <option value="3">编制品</option>
            <option value="4">其他</option>
        </select>
        <input type="text" name="name" placeholder="工艺品名称"><br>
        <input type="text" name="code" placeholder="工艺品代码"><br>
        <%--<c:if test="${goods.id == null}">--%>
            <div id="container">
                <a class="btn btn-default btn-lg " id="pickfiles" href="#" >
                    <span>上传工艺品图片，请选择文件</span>
                </a>
            </div>
            <input id="urlText" name="pic" type="hidden" value=""></input>
        <%--</c:if>--%>
        <input type="number" min="0" max="100000" step="1" name="price" placeholder="工艺品价格，以元角分的分为单位"><br>
        <input type="number" min="0" max="100000" name="count" placeholder="工艺品数量"><br>
        <input type="text" name="province" placeholder="工艺品所在省"><br>
        <input type="text" name="nation" placeholder="工艺品所属民族"><br>
        <textarea name="content" placeholder='工艺品介绍，第一部分是历史沿革，第二部分是工艺技术，中间以"@@"分割!' rows="7" cols="77"></textarea>
        <input type="submit" value="上架">
    </form>
</div>

<jsp:include page="../template_footer.jsp"></jsp:include>

<script src="${basePath}/js/qiniu.js"></script>
